//规则
export const loginAccountRules = {
  name: [
    {
      required: true,
      message: '用户是必传内容',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{3,10}$/,
      message: '用户名必须是5-10个字母或数字',
      trigger: 'blur'
    }
  ],
  password: [
    {
      required: true,
      message: '密码是必传内容',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{3,}$/,
      message: '密码必须是3位以上字母或数字',
      trigger: 'blur'
    }
  ]
}
export const loginPhoneRules = {
  phoneNumber: [
    {
      required: true,
      message: '手机号是必传内容',
      trigger: 'blur'
    },
    {
      pattern: /^[0-9]{11}$/,
      message: '手机号必须是11位数字',
      trigger: 'blur'
    }
  ],
  verifyCode: [
    {
      required: true,
      message: '验证码是必传内容',
      trigger: 'blur'
    },
    {
      pattern: /^[a-z0-9]{5}$/,
      message: '验证码必须是5位字母或数字',
      trigger: 'blur'
    }
  ]
}
